import React from 'react';
import PropTypes from 'prop-types';
const Star = ({selected=false, onClick=f=>f}) => {
    return <label className={(selected) ? "star selected" : "star"} onClick={onClick} ></label>
}
Star.propTypes = {
    selected: PropTypes.bool,
    onClick: PropTypes.func
}
Star.defaultProps = {
    selected: false,
    onClick: f=>f
}
export default Star;